﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="View.WindowAddContact"
	x:Name="Window"
	Title="KIM - Add/Edit Contact"
	Width="241" Height="386" WindowStyle="ToolWindow" ResizeMode="NoResize" WindowStartupLocation="CenterOwner">

	<Grid x:Name="LayoutRoot" Background="{DynamicResource Brush1}">
		<TextBlock Margin="0,20,0,0" VerticalAlignment="Top" Height="25" TextWrapping="Wrap" HorizontalAlignment="Center" Background="{x:Null}" Foreground="#FFFFFFFF" Text="EDIT CONTACT"/>
		<TextBlock Margin="0,65,0,0" VerticalAlignment="Top" Height="20" TextWrapping="Wrap" Text="Mail :" Foreground="#FFFFFFFF" HorizontalAlignment="Center"/>
		<TextBox Margin="0,86,0,0" VerticalAlignment="Top" Height="25" Text="{Binding CurrentContact.Mail}" TextWrapping="Wrap" x:Name="textBoxMail" HorizontalAlignment="Center" Width="160" />
		<TextBlock HorizontalAlignment="Center" Margin="0,122,0,0" VerticalAlignment="Top" Height="20" Foreground="#FFFFFFFF" Text="Alias :" TextWrapping="Wrap"/>
		<TextBox Margin="0,142,0,0" x:Name="textBoxAlias" Text="{Binding CurrentContact.Alias}" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Top" Width="160" Height="25"/>
		<CheckBox Margin="0,250,0,0" VerticalAlignment="Top" Height="23" Content="Blocked" Foreground="#FFFFFFFF" HorizontalAlignment="Center" x:Name="checkBoxBlockContact" IsChecked="{Binding CurrentContact.Blocked}"/>
		<ComboBox Margin="0,197,0,0" VerticalAlignment="Top" Height="28" IsSynchronizedWithCurrentItem="True" HorizontalAlignment="Center" Width="160" Name="comboGroup" ItemsSource="{Binding GroupList}"/>
		<TextBlock HorizontalAlignment="Center" Margin="0,173,0,0" VerticalAlignment="Top" Height="20" Foreground="#FFFFFFFF" Text="Group :" TextWrapping="Wrap"/>
		<ComboBox HorizontalAlignment="Right" Margin="0,0,-124,126" VerticalAlignment="Bottom" Width="3" Height="1" IsSynchronizedWithCurrentItem="True" SelectedValue="{Binding CurrentContact.Group}"/>
		<Button HorizontalAlignment="Center" Margin="0,300,100,0" VerticalAlignment="Top" Width="70" Height="30" Content="Apply" x:Name="buttonEditAddContact" Click="buttonEditAddContact_Click" />
		<Button HorizontalAlignment="Center" Margin="100,300,0,0" VerticalAlignment="Top" Width="70" Height="30" Content="Cancel" x:Name="buttonCancel" Click="buttonCancel_Click"/>
	</Grid>
</Window>